package com.cloud.model.entity.consumetype;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.cloud.model.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * <b><code>ConsumeType</code></b>
 * <p/>
 * ConsumeType的具体实现
 * <p/>
 * <b>Creation Time:</b> 2019-10-15 17:23:42.
 *
 * @author ${model.author}
 * @version 1.0.0
 * @since cloud-spring-boot-be 1.0.0
 */
@Entity
@Table(name="t_consume_type")
@DynamicInsert
@DynamicUpdate
public class ConsumeType extends BaseEntity implements Serializable {

    /**
    * The constant serialVersionUID.
    */
    private static final long serialVersionUID = -1L;

    @Column(name = "icon")
    @ApiModelProperty(value = "icon地址")
    private String icon;

    @Column(name = "icon_1")
    @ApiModelProperty(value = "icon_1地址")
    private String icon1;

    @Column(name = "type")
    @ApiModelProperty(value = "消费类型 0：支出 1：收入")
    private Integer type;

    @Column(name = "name")
    @ApiModelProperty(value = "名称")
    private String name;

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIcon1() {
        return icon1;
    }

    public void setIcon1(String icon1) {
        this.icon1 = icon1;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ConsumeType(){
        super();
    }

}
